load("//bazel:build.bzl", "redpanda_cc_library")

redpanda_cc_library(
    name = "crash_tracker",
    srcs = [
        "limiter.cc",
        "logger.cc",
        "prepared_writer.cc",
        "recorder.cc",
        "service.cc",
        "signals.cc",
        "types.cc",
    ],
    hdrs = [
        "limiter.h",
        "logger.h",
        "prepared_writer.h",
        "recorder.h",
        "service.h",
        "signals.h",
        "types.h",
    ],
    implementation_deps = [
        "//src/v/bytes",
        "//src/v/bytes:iobuf",
        "//src/v/config",
        "//src/v/hashing:xx",
        "//src/v/model",
        "//src/v/random:generators",
        "//src/v/serde",
        "//src/v/serde:bytes",
        "//src/v/serde:enum",
        "//src/v/serde:iobuf",
        "//src/v/serde:sstring",
        "//src/v/serde:vector",
        "//src/v/utils:arch",
        "//src/v/utils:directory_walker",
        "//src/v/utils:file_io",
        "//src/v/version",
        "@fmt",
    ],
    visibility = ["//visibility:public"],
    deps = [
        "//src/v/base",
        "//src/v/model",
        "//src/v/serde",
        "@seastar",
    ],
)
